<?php
defined('IN_TS') or die('Access Denied.');

$userid = aac('user')->isLogin();


//问题分类
$arrCate = $new['ask']->findAll('ask_cate');

//用户关注的分类
if (isset($TS_USER['userid']) && '' != $TS_USER['userid'])
{
	$userid = intval($TS_USER['userid']);
	$selectedcate = $new['ask']->findAll('ask_user_cate', array('userid'=>$userid));
}


$arrAskId = $new['ask']->findAll('ask_comment',"`userid`='$userid' group by askid",'addtime desc');

foreach($arrAskId as $key=>$item){
	$arrAsk[] = $new['ask']->find('ask_topic',array(
		'askid'=>$item['askid'],
	));
}

$title = '我参与的问答';
include template('my');